<html>
<head>
    <meta charset="utf-8"/>
    <title>本地网页title</title>


</head>
<body>
<span>我是本地html</span><br/>
<span id="myId"></span><br/>
<button type="button" onclick="callAndroid()">点我调用android里的hello</button>
<button type="button" onclick="callAndroid2()">点我调用android自定义schema</button>
<script type="text/javascript">

        function myJs(msg){
          alert("来自网页的提示:"+msg)
          document.getElementById("myId").innerHTML = "Android传入内容:"+msg;
          return "ok";
        }
        function callAndroid(){
            // 由于对象映射，所以调用test对象等于调用Android映射的对象
            androidJsCallback.hello("我是js");
        }
        function callAndroid2(){
           /*约定的url协议为：myjs://webview?arg1=111&arg2=222*/
           document.location = "myjs://webview?arg1=111&arg2=222";
        }
        window.myJs = myJs;

</script>
</body>
</html>